<html xmlns:o="urn:schemas-microsoft-com:office:office" 
 xmlns:x="urn:schemas-microsoft-com:office:excel" 
 xmlns="http://www.w3.org/TR/REC-html40"> 
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 <html> 
     <head> 
        <meta http-equiv="Content-type" content="text/html;charset=UTF-8" /> 
         <style id="Classeur1_16681_Styles"></style> 
     </head> 
     <body> 
<div id="Classeur1_16681" align=center x:publishsource="Excel"> 
<table x:str border=1 cellpadding=0 cellspacing=0 width="100%" style="border-collapse: collapse;border 1px #000 solid"> 
<thead>
    <tr style="background: #C3C3C3;height:40px">
        <th>门店跟踪号 </th>
        <th>门店号</th>
        <th>附加门店号</th>
        <th>手机名称</th>
        <th>IMEI号</th>
        <th>收货日期</th>
        <th>购机日期</th>
        <th>维修状态</th>
        <th>运营商</th>
        <th>故障类型代码</th>
        <th>是否保内</th>
        <th>维修级别</th>
        <th>新IMEI号码</th>
        <th>维修使用物料代码</th>
        <th>检修工程师</th>
        <th>维修日期</th>
        <th>发货日期</th>
        <th>收件快递号</th>
        <th>发件快递号</th>
    </tr>
</thead>
<tbody>
{loop $list $vo}
<tr>
    <td>{$vo['number']}</td>
    <td>
{loop $supplier_lists $rs}   
     {if $vo['supplier_id'] == $rs['id']}{$rs['name']}{/if}
{/loop}       
    </td>
    <td>{$vo['supplier_code']}</td>
    <td>{$vo['mobile_name']}</td>
    <td>{$vo['imei']}</td>
    <td>{if $vo['address_time']}{date('Y-m-d',$vo['address_time'])}{/if}</td>
    <td>{if $vo['shop_time']}{date('Y-m-d',$vo['shop_time'])}{/if}</td>
    <td>
        {if $vo['status'] == 1}
            已入库
        {elseifif $vo['status'] == 2}
            维修中
        {elseif $vo['status'] == 3}
            质检中
        {elseif $vo['status'] == 4}
            待出库
        {elseif $vo['status'] == 5}
            已出库
        {else}
            预入库
        {/if}
    </td>
    <td>
{loop $unicom_lists $un}   
     {if $vo['unicom_id'] == $un['id']}{$un['name']}{/if}
{/loop}       
    </td>
    <td>
{if $vo['faulttype_big']}    
<table x:str border=1 cellpadding=0 cellspacing=0 width="100%" style="border-collapse: collapse;border 1px #000 solid">
        <tr>
{loop $vo['faulttype_big'] $rs}
<td style="background: #888">故障大类</td>
    {loop $rs['faulttype_smalle'] $res}
<td style="background: #C3C3C3">故障小类</td>
    {/loop}
 {/loop} 
        </tr>
        <tr>
{loop $vo['faulttype_big'] $rs}
<td>{$rs['faulttype_code']}</td>
    {loop $rs['faulttype_smalle'] $res}
<td>{$res['faulttype_code']}</td>
    {/loop}
 {/loop} 
        </tr>
 </table>
{/if}
    </td>
    <td>{if $vo['overtime'] =='是'}是{else}否{/if}</td>
    <td>{$vo['fault_level']}</td>
    <td>{$vo['new_imei']}</td>
    <td>
{if $vo['mobile_bom']}  
<table x:str border=1 cellpadding=0 cellspacing=0 width="100%" style="border-collapse: collapse;border 1px #000 solid">
<tr>
{loop $vo['mobile_bom'] $rs}
    <td style="background: #C3C3C3">物料代码</td>
 {/loop} 
 </tr>
 <tr>
{loop $vo['mobile_bom'] $rs}
    <td>{$rs['code']}</td>
 {/loop} 
</tr>
 </table>
 {/if}  
    </td>
    <td>{$vo['service_admin_name']}</td>
    <td>{if $vo['service_time']}{date('Y-m-d H:i:s',$vo['service_time'])}{/if}</td>
    <td>{if $vo['out_time']}{date('Y-m-d H:i:s',$vo['out_time'])}{/if}</td>
    <td>{$vo['ems_sn']}</td>
    <td>{$vo['outwarehouse_ems_sn']}</td>
</tr>
{/loop}
</tbody>
</table>
</div>
</body>
</html>